package com.zhixiang.xaec.service.safebase.emergency.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhixiang.core.dao.BaseDao;
import com.zhixiang.core.service.impl.BaseServiceImpl;
import com.zhixiang.xaec.dao.safebase.emergency.EmergencyPlanDao;
import com.zhixiang.xaec.entity.safebase.emergency.EmergencyPlan;
import com.zhixiang.xaec.service.safebase.emergency.EmergencyPlanService;
@Service
public class EmergencyPlanServiceImpl extends BaseServiceImpl<EmergencyPlan, Long>
implements EmergencyPlanService{

    @Override
    public String delete(String[] ids) {
        for(String id:ids){
            getDao().remove(Long.valueOf(id));
        }
        return null;
    }

    @Override
    @Resource(type=EmergencyPlanDao.class)
    public void setBaseDao(BaseDao<EmergencyPlan, Long> dao) {
        setDao(dao);
    }

}
